import {
  PageView,
} from '@/layouts';

export default {
  path: '/user',
  name: 'user',
  redirect: '/user/List',
  component: PageView,
  meta: {
    title: '用户管理',
    icon: 'user',
    permission: ['userManagement'],
  },
  children: [{
    path: '/user/List',
    name: 'UserListForm',
    component: () => import('@/views/user/List'),
    meta: {
      title: '用户列表',
      permission: ['passport_list'],
    },
  },
  {
    path: '/user/Message',
    name: 'UserMessageForm',
    component: () => import('@/views/user/Message'),
    meta: {
      title: '个人中心',
      // hiddenHeaderContent: true
    },
    // hidden: true,
  },
  {
    path: '/user/Role',
    name: 'UserRoleForm',
    component: () => import('@/views/user/Role'),
    meta: {
      title: '角色管理',
      permission: ['role_list'],
    },
  },
  // {
  // 	path: '/user/Grouping',
  // 	name: 'userGroupingForm',
  // 	component: () => import('@/views/user/Grouping'),
  // 	meta: {
  // 		title: '公司管理',
  // 		permission: [ 'group_list' ]
  // 	},
  // },
  {
    path: '/user/platformGrouping',
    name: 'userPlatformGrouping',
    component: () => import('@/views/user/Grouping/platform'),
    meta: {
      title: '平台管理',
      permission: ['userPlatform_list'],
    },
  },
  {
    path: '/user/agentGrouping',
    name: 'userAgentGrouping',
    component: () => import('@/views/user/Grouping/agent'),
    meta: {
      title: '代理管理',
      permission: ['agent_list'],
    },
  },
  {
    path: '/user/companyGrouping',
    name: 'userCompanyGrouping',
    component: () => import('@/views/user/Grouping/company'),
    meta: {
      title: '公司管理',
      permission: ['company_list'],
    },
  },
  {
    path: '/user/loginStatistics',
    name: 'loginStatistics',
    component: () => import('@/views/user/loginStatistics'),
    meta: {
      title: '登录统计',
      permission: ['login_statistics'],
    },
  },
  {
    path: '/user/LoginRecord',
    name: 'UserLoginRecordForm',
    component: () => import('@/views/user/LoginRecord'),
    meta: {
      title: '登录记录',
      permission: ['login_list'],
    },
  },
  {
    path: '/user/feedback',
    name: 'userFeedback',
    component: () => import('@/views/user/feedback'),
    meta: {
      title: '用户反馈',
      permission: ['feedback_list'],
    },
  },
  ],
};
